package com.ruoyi.baseSys.service.impl;

import java.util.List;

import com.ruoyi.baseSys.domain.Residential;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.baseSys.mapper.MResidentialManageMapper;
import com.ruoyi.baseSys.domain.MResidentialManage;
import com.ruoyi.baseSys.service.IMResidentialManageService;

/**
 * 小区管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-25
 */
@Service
public class MResidentialManageServiceImpl implements IMResidentialManageService 
{
    @Autowired
    private MResidentialManageMapper mResidentialManageMapper;

    /**
     * 查询小区管理
     * 
     * @param id 小区管理主键
     * @return 小区管理
     */
    @Override
    public MResidentialManage selectMResidentialManageById(Long id)
    {
        return mResidentialManageMapper.selectMResidentialManageById(id);
    }

    /**
     * 查询小区管理列表
     * 
     * @param mResidentialManage 小区管理
     * @return 小区管理
     */
    @Override
    public List<MResidentialManage> selectMResidentialManageList(MResidentialManage mResidentialManage)
    {
        return mResidentialManageMapper.selectMResidentialManageList(mResidentialManage);
    }

    /**
     * 新增小区管理
     * 
     * @param mResidentialManage 小区管理
     * @return 结果
     */
    @Override
    public int insertMResidentialManage(MResidentialManage mResidentialManage)
    {
        return mResidentialManageMapper.insertMResidentialManage(mResidentialManage);
    }

    /**
     * 修改小区管理
     * 
     * @param mResidentialManage 小区管理
     * @return 结果
     */
    @Override
    public int updateMResidentialManage(MResidentialManage mResidentialManage)
    {
        return mResidentialManageMapper.updateMResidentialManage(mResidentialManage);
    }

    /**
     * 批量删除小区管理
     * 
     * @param ids 需要删除的小区管理主键
     * @return 结果
     */
    @Override
    public int deleteMResidentialManageByIds(Long[] ids)
    {
        return mResidentialManageMapper.deleteMResidentialManageByIds(ids);
    }

    /**
     * 删除小区管理信息
     * 
     * @param id 小区管理主键
     * @return 结果
     */
    @Override
    public int deleteMResidentialManageById(Long id)
    {
        return mResidentialManageMapper.deleteMResidentialManageById(id);
    }

    @Override
    public List<Residential> getResidentialList() {
        return mResidentialManageMapper.getResidentialList();
    }
}
